package com.hellobike.haxing.modules.operate.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import com.hellobike.haxing.common.annotation.Dict;

/**
 * @Description: banner广告管理
 * @Author: haxing-boot
 * @Date:   2020-01-08
 * @Version: V1.0
 */
@Data
@TableName("t_operate_banner")
public class OperateBanner implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**id*/
	@TableId(type = IdType.AUTO)
    private Long id;
	/**名称*/
	@Excel(name = "名称", width = 15)
    private String name;
	/**图片路径*/
	@Excel(name = "图片路径", width = 15)
    private String href;
	/**开始时间*/
	@Excel(name = "开始时间", width = 15, format = "yyyy-MM-dd HH:mm")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
    private Date beginTime;
	/**结束时间*/
	@Excel(name = "结束时间", width = 15, format = "yyyy-MM-dd HH:mm")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
    private Date endTime;
	/**链接类型1商品详情页2cms*/
	@Excel(name = "链接类型1商品详情页2cms", width = 15)
    private Integer linkType;
	/**连接地址*/
	@Excel(name = "连接地址", width = 15)
	@TableField(strategy=FieldStrategy.IGNORED)
    private String linkUrl;
	/**创建时间*/
	@Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**修改时间*/
	@Excel(name = "修改时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
	/**0不删除1删除*/
	@Excel(name = "0不删除1删除", width = 15)
	@TableLogic
    private Integer deleted;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    private Integer createBy;
	/**修改人*/
	@Excel(name = "修改人", width = 15)
    private Integer updateBy;
	/**排序*/
	@Excel(name = "排序", width = 15)
	@TableField(strategy=FieldStrategy.IGNORED)
    private Integer sort;

	/**连接参数*/
	@Excel(name = "连接参数", width = 15)
	@TableField(strategy=FieldStrategy.IGNORED)
	private Long linkParam;

	/**状态1待生效2生效中3已过期 */
	@TableField(exist = false)
	private Integer status;
}
